<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>基础知识</title>
	<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"" rel="stylesheet">
	<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	<link href="https://cdn.bootcdn.net/ajax/libs/animate.css/3.2.3/animate.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="../../static/css/public.css" />
</head>
<body>
	<!--右边内容-->
	<div id="app" class="main animated fadeInRight">
		<div class="shadow">
			<div>
				<h4>条件语句</h4>
				<pre>
	var  task = prompt("请输入内容");
		if(task>=60){
			alert("及格")
		};
		if(task<60){
			alert("渣渣")
		};
		if（判断条件）{
			……
		}
		if(task==="60"){
			
		} 
	等价于下面的方式
		
	switch(true){
		case task>=60:
			alert("及格");
		break;
		case "59":   /*固定值要用""包裹*/
			alert(task);
		break;
		case task<55:
			alert(task);
		break;
		default:
			alert("错误");
		break;	
	};				
				</pre>	
	
			</div>
		</div>
	</div>
	<!--页面加载进度条-->
	<script src="https://cdn.bootcdn.net/ajax/libs/pace/0.5.0/pace.min.js"></script>
</body>

</html>